package com.zdsoft.finance.product.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import com.zdsoft.finance.base.service.impl.BaseServiceImpl;
import com.zdsoft.finance.common.base.CustomRepository;
import com.zdsoft.finance.product.entity.ProductRiskRule;
import com.zdsoft.finance.product.repository.ProductRiskRuleRepository;
import com.zdsoft.finance.product.service.ProductRiskRuleService;

/**
 * 产品风险规则操作实现
 * @author longwei
 * @date 2016/11/22
 * @version 1.0
 */
@Service("productRiskRuleService")
public class ProductRiskRuleServiceImpl extends BaseServiceImpl<ProductRiskRule, CustomRepository<ProductRiskRule,String>> implements ProductRiskRuleService{

	@Autowired
	private ProductRiskRuleRepository productRiskRuleRepository;
	
	@Override
	public Page<ProductRiskRule> queryByCons(ProductRiskRule productRiskRule, Pageable pageable) {
		return productRiskRuleRepository.queryByCons(productRiskRule, pageable);
	}

}
